package edu.sctu.liangyuxiang.day20150505;

/**
 * Created by 梁玉翔 on 2015/5/6.
 */
public class DogTwo extends Abstract{
    public Interface anInterface;
    public DogTwo(Interface anInterface){

        this.anInterface = anInterface;
    }

    @Override
    public void getColor() {
        color = "black";
    }

    @Override
    public void getSize() {
        size = 20;
    }

    @Override
    public void getAction() {
        action = "jump";
    }

    public void getout(){
        anInterface.getInto(color,size,action);
    }
}
